package com.itheima.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.domain.Setmeal;
import com.itheima.dto.SetmealDto;

import java.util.List;

public interface SetmealService extends IService<Setmeal> {

    //新增套餐
    public void saveWithDish(SetmealDto setmealDto);
    //分页查询
    public Page<SetmealDto> findByPage(Integer page,Integer pageSize,String name);

    void deleteIds(Long[] ids);

    void updateStatus(int status, Long[] ids);

    SetmealDto findById(Long id);

    void updateAll(SetmealDto setmealDto);

    List<Setmeal> listByid(Setmeal setmeal);
}